package com.design.battercake.v2;

public class Test {

    public static void main(String[] args) {
        BatterCake batterCake;
        batterCake = new BaseBatterCake();

        batterCake = new EggDecorator(batterCake);
        batterCake = new EggDecorator(batterCake);
        batterCake = new SauageDecorator(batterCake);

        System.out.println(batterCake.getMsg() + ",总价:" + batterCake.getPrice());
    }
}
